package cn.lyf.myblog.controller.view;



import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;


import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class Blog {
    // article/1
    @RequestMapping(value = "/article/{bid}")
    public String login(@PathVariable Integer bid, Model model) throws Exception {
        model.addAttribute("bid", bid);
        return "user/blog";
    }
}
